﻿using System.Windows.Forms;
using QuanLyThongTinCoSo.BaseForm;

namespace QuanLyThongTinCoSo.Forms.PhieuDieuTraCoSo
{
    public partial class frmPhieuDieuTraCoSoList : frmObject
    {
        public frmPhieuDieuTraCoSoList()
        {
            InitializeComponent();
        }

        private void btnAddPhieuDieuTra_Click(object sender, System.EventArgs e)
        {
            //ShowBackground();
            var frm = Application.OpenForms["frmPhieuDieuTraCoSoDetail"] as frmPhieuDieuTraCoSoDetail;
            if (frm != null)
            {
                frm.WindowState = FormWindowState.Maximized;
                frm.BringToFront();
                frm.Activate();
            }
            else
            {
                frm = new frmPhieuDieuTraCoSoDetail
                          {WindowState = FormWindowState.Maximized, MdiParent = this.ParentForm};
                frm.Show();
            }
            //lblStatus.Text = "Hình thức đầu tư";
        }
    }
}